using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmInventoryStockTakingItem")]
    public class InventoryStockTakingItem
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "StockTakingItemId", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public int StockTakingItemId { get; set; }

		[DataMember, Display(Name = "StockTakingCode", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public int StockTakingId { get; set; }

        [ForeignKey("MasResourceItem")]
		[DataMember, Display(Name = "ResItemId", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<int> ResItemId { get; set; }

		[DataMember, Display(Name = "QuanlityAmountStock", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<int> QuanlityAmountStock { get; set; }

		[DataMember, Display(Name = "QuantityAmountReal", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<int> QuantityAmountReal { get; set; }

		[DataMember, Display(Name = "Remark", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public string Remark { get; set; }

        [ForeignKey("Status")]
        [DataMember, Display(Name = "StatusParcel", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public int StatusParcel { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.InventoryStockTakingItemResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember]
        public virtual ICM.MasResourceItem MasResourceItem { get; set; }

        [DataMember]
        public virtual IcmMasLookUp Status { get; set; }
    }
}